package com.campus.mapper;

import com.campus.entity.TManagerActivity;
import org.apache.ibatis.annotations.Options;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ActivityMapper {

    @Options(useGeneratedKeys = true, keyProperty = "tManagerActivity.id")
    int createActivity(TManagerActivity tManagerActivity);

    int updateActivity(Integer id,
                       String name,
                       String category,
                       String title,
                       String creator,
                       String abstractInfo,
                       String detailedDesc,
                       Integer status,
                       String picUrls);

    List<Object> queryActivity(String status,String name);
}
